﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;

namespace BUS
{
    public class NhaXuatBanBUS
    {
        public static List<NhaXuatBanDTO> LayDanhSachNXB()
        {
            List<NhaXuatBanDTO> list = new List<NhaXuatBanDTO>();
            try
            {
                NhaXuatBanDAO nxbDAO = new NhaXuatBanDAO();
                list = nxbDAO.LayDanhSachNXB();
            }
            catch (System.Exception )
            {
            }
            return list;
        }

        public static void ThemNhaXuatBan(NhaXuatBanDTO nxbDTO)
        {
            try
            {
                NhaXuatBanDAO nxbDAO = new NhaXuatBanDAO();
                nxbDAO.ThemNhaXuatBan(nxbDTO);
            }
            catch (System.Exception)
            {
            }
        }
    }
}
